<template>
  <div class="card" :style="{ height: props.height }">
    <div class="alltitle">{{ props.title }}</div>
    <img src="@/assets/imgs/largeScreen/c1.png" alt="" class="card-bg">
    <div class="content">
      <slot></slot>
    </div>
    <div class="boxfoot"></div>
  </div>
</template>
<script setup lang="ts">
const props = defineProps({
  height: {
    type: String,
    default: ''
  },
  title: {
    type: String,
    default: ''
  }
})
</script>
<style scoped lang="scss">
.card {
  width: 100%;
  border: 1px solid rgba(25, 186, 139, 0.17);
  padding: 0 0.3rem 0 0.3rem;
  background: rgba(255, 255, 255, 0.04) url(@/assets/images/line.png);
  background-size: 100% auto;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  padding-top: 0.2rem;
  .content {
    width: 100%;
    height: 100%;
  }
  .card-bg {
    width: 100%;
    position: absolute;
    top: -0.2rem;
    left: 0;
  }
}
.boxfoot {
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
}
.card:before,
.card:after {
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  content: '';
  border-top: 2px solid #02a6b5;
  top: 0;
}
.boxfoot:before,
.boxfoot:after {
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  content: '';
  border-bottom: 2px solid #02a6b5;
  bottom: 0;
}
.card:before,
.boxfoot:before {
  border-left: 2px solid #02a6b5;
  left: 0;
}
.card:after,
.boxfoot:after {
  border-right: 2px solid #02a6b5;
  right: 0;
}
.alltitle {
  font-size: 0.2rem;
  color: #fff;
  text-align: left;
  line-height: 0.5rem;
  //border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'MyCustomFont', sans-serif;
  text-align: center;
  width: 100%;
  position: absolute;
  top: -0.25rem;
  left: 0;
  z-index: 2;
}
</style>
